package com.cloudgateway.client;

import com.common.global.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "auth-core", contextId = "AuthApi", path = "/auth-2f", fallbackFactory = AuthApiFallback.class)
public interface AuthApi {

    @GetMapping("/authentication/info")
    R<LoginInfo> authenticationInfo(@RequestHeader("token") String token);
}
